<h1>Listing grammars</h1>

<table>
  <tr>
    <th>D</th>
    <th>La</th>
    <th>Cl</th>
    <th>Lv</th>
    <th>Tr</th>
    <th>Eg</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @grammars.each do |grammar| %>
  <tr>
    <td><%= grammar.d %></td>
    <td><%= grammar.la %></td>
    <td><%= grammar.cl %></td>
    <td><%= grammar.lv %></td>
    <td><%= grammar.tr %></td>
    <td><%= grammar.eg %></td>
    <td><%= link_to 'Show', grammar %></td>
    <td><%= link_to 'Edit', edit_grammar_path(grammar) %></td>
    <td><%= link_to 'Destroy', grammar, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Grammar', new_grammar_path %>
